<?php $this->load->view(TEMPLATE_NAME.'/admin/header');?>
<?php $this->load->view(TEMPLATE_NAME.'/admin/side_left');?>

<div class="page noright adminpage adminuser">
<table><tr><td style='width: 700px;' class='u1'>
<div class="purple f12" >Banners</div>
</td><td style='width: 200px;' class='u1'>
<div class="purple f12" style="float:right;" ><a href="<?php echo base_url();?>admin/banners">back</a></div>
</td></tr></table>


<hr/>
<?php
echo '<strong class="black f13">'.$ban_category.'</strong>';
    echo '<hr/><table class="tableadmin nobactableadmin">';
 //print_r($ban_detail); 
if(!empty($ban_detail)){
     
    foreach($ban_detail as $key=>$ban_detail){
        echo "<tr><td style='width: 200px;' class='u1'>";
        echo $ban_detail['ban_name'];
        
        echo "</td><td style='width: 200px;' class='u1'>";
        echo ($ban_detail['ban_placement'] == 1)? 'right': '';
        echo ($ban_detail['ban_placement'] == 2)? 'bottom' : '';
        echo "</td><td style='width: 100px;' class='u1'>";
        
        echo 'views: <span class="purple">';
         echo $ban_detail['ban_track_view'];
        echo "</span></td><td style='width: 100px;' class='u1'>";
        echo 'click:  <span class="purple">';
        echo $ban_detail['ban_track_click'];
        echo "</span></td><td style='width: 100px;text-align:right' class='u1'>";
        ?>
        <strong class='purple'><a href="<?php echo base_url();?>admin/banners/action/<?php echo $ban_detail['ban_id']; ?>">edit</a></strong> | 
        <strong class='purple'><a href="<?php echo base_url();?>admin/banners/delete/<?php echo $ban_detail['ban_id']; ?>" onClick="return confirm('Are you sure')">delete</a></strong>
        <?php
        echo "</td></tr>";
        //echo '<hr/>';
        
    }
    
}else{
    echo '<p class="purple f13"> '.$ban_category.' not available.</p><hr />';
}
echo '</table>';
?>


</div><!-- page -->
<?php form_close();?>
<?php $this->load->view(TEMPLATE_NAME.'/admin/footer');?>